//
//  BaseModel.h
//  Movie
//
//  Created by zzh on 15/2/10.
//  Copyright (c) 2015年 zzh. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface BaseModel : NSObject

-(id)initWithDataDic:(NSDictionary*)data;

- (id)initContentWithDic:(NSDictionary *)jsonDic;

- (void)setAttributes:(NSDictionary *)jsonDic;

- (NSDictionary *)attributeMapDictionary:(NSDictionary *)jsonDic;

//把数组数据写入到文件中
+(void)writeDataArray:( NSMutableArray*)ayy  ModelKey:(NSString*)key ;
//获取文件的数组数据
+( NSMutableArray*) readDataArrayByModelKey:(NSString*)key ;

@end
